@layout("/common/_container.html",{plugins:["ztree"],js:["/assets/modular/system/drug/drug.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">商品管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
<!--        <div class="layui-col-sm12 layui-col-md3 layui-col-lg2">-->
<!--            <div class="layui-card">-->
<!--                <div class="layui-card-body mini-bar">-->
<!--                    <div class="ztree" id="deptTree"></div>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="name" class="layui-input" type="text" placeholder="商品名称"/>
                            </div>
                            <div class="layui-inline">
                                <input id="timeLimit" class="layui-input" type="text" placeholder="时间"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                @if(shiro.hasPermission("/drug/add")){
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                @}
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="drugTable" lay-filter="drugTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-radius layui-btn-xs" lay-event="show">查看附件</a>
    @if(shiro.hasPermission("/drug/edit")){
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    @}
    @if(shiro.hasPermission("/drug/delete")){
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    @}
    @if(shiro.hasPermission("/drug/status")){
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="status">状态管理</a>
    @}
</script>

<!--<script type="text/html" id="drugStatusTpl">-->
<!--    <input type="text" lay-filter="status" value="{{d.id}}" lay-skin="switch" lay-text="进行中|配药完成" {{d.status=='0'?'checked':''}} />-->
<!--</script>-->
@}